#ifndef _MY_TIME_H
#define _MY_TIME_H

#include <time.h>
#include <stdio.h>

#ifdef TIME_ZONE_0
	#define TIME_ZONE_DIFF 28800
#else
	#define TIME_ZONE_DIFF 0
#endif

/**
 * 时间封装
 */

void printTime(time_t timeData);
void getDateTime(time_t timeData, char* buf);
void getTimeMS(time_t timeData, char* buf);
time_t getCurrentDay();
time_t getCurrentTime();
time_t getSpecialDay(int year, int month, int day);
void getCurrentYMD(int &year, int &month, int &day);
void getCurrentDate(char* buf);
void getLastMonthDate(char* buf);
int getCurrentDaySecond();
#endif
